<div class="user-image">
    <a href="/note/<%=  note_info.user[0]._id  %>/"><img src="<%= note_info.user[0].img %>" /></a>
</div>
<div class="horizontal-centrol padding-20 margin-top-20" style="position: relative">
    <h3><a class="color" href="/note/get_note/<%= user %>/<%= note_info._id %>"><%= note_info.title%></a></h3>
    <pre>
        <p><%= note_info.content%></p>
    </pre>
    <div style="padding: 20px 0">
        <div class="pull-left" >
            <span class="color-1"><%= note_info.updated_at %></span>
        </div>
        <div class="pull-right " >
            <span class="color-1">留言(<%= note_info.comment_num %>)</span>
            <span class="dropdown  <%= user != note_info.user[0]._id ? 'hide' : '' %>" >
                <div class="glyphicon glyphicon-triangle-bottom" data-toggle="dropdown"></div>
                <ul class="dropdown-menu dropdown-menu-left" style="min-width: 50px;">
                    <li><a href="/note/update/<%= user %>?_id=<%= note_info._id %>">编辑</a></li>
                    <li><a href="#" onclick="delete_note('<%= note_info._id %>','<%= user %>')">删除</a></li>
                </ul>
            </span>
        </div>
    </div>
</div>
<script type="text/javascript" src="/javascripts/note.js"></script>